import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:god_logistics/pages/home/completed.dart';
import 'package:god_logistics/pages/home/going.dart';
import 'package:god_logistics/pages/home/waiting.dart';

class Taskpage extends StatefulWidget {
  const Taskpage({super.key});

  @override
  State<Taskpage> createState() => _TaskpageState();
}

class _TaskpageState extends State<Taskpage> {
  int currentIndex = 0;
  // 底部TabBar数据
  List tabBarList = [
    {"title": "待提货"},
    {"title": "在途"},
    {"title": "已完成"},
  ];

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 3,
      child: Scaffold(
        appBar: AppBar(
          bottom: const TabBar(
            tabs: [Tab(text: '待提货'), Tab(text: '在途'), Tab(text: '已完成')],
          ),
        ),
        body: Container(
          color: const Color.fromARGB(255, 220, 213, 213),
          child: TabBarView(children: [Waiting(), Going(), Completed()]),
        ),
      ),
    );
  }
}
